import http from "@/utils/http";
const prefixUrl = {
  query: "/analysis/user/list",
  create: "/analysis/user/create",
  update: "/analysis/user/edit",
  uploadAvatar: "/analysis/uploadImage",
  queryCountryCode: "/analysis/user/getCountryCode",
  delete: "/analysis/user/delete",
  updatePsd: "/analysis/user/editPassword",
  updateStatus: "/analysis/user/disable",
};
export default {
  role: {
    query: "POST:" + prefixUrl.query,
    create: "POST:" + prefixUrl.create,
    update: "POST:" + prefixUrl.update,
    uploadAvatar: "POST:" + prefixUrl.uploadAvatar,
    queryCountryCode: "POST:" + prefixUrl.queryCountryCode,
    delete: "POST:" + prefixUrl.delete,
    updatePsd: "POST:" + prefixUrl.updatePsd,
    updateStatus: "POST:" + prefixUrl.updateStatus,
  },
  updateStatus(params = {}) {
    return http.post(prefixUrl.updateStatus, params);
  },
  updatePsd(params = {}) {
    return http.post(prefixUrl.updatePsd, params);
  },
  delete(params = {}) {
    return http.post(prefixUrl.delete, params);
  },
  query(params = {}) {
    return http.post(prefixUrl.query, params);
  },
  create(params = {}) {
    return http.post(prefixUrl.create, params);
  },
  update(params = {}) {
    return http.post(prefixUrl.update, params);
  },

  uploadAvatar(params = {}) {
    return http.post(prefixUrl.uploadAvatar, params);
  },
  queryCountryCode(params = {}) {
    return http.post(prefixUrl.queryCountryCode, params);
  },
};
